import pandas as pd

df = pd.DataFrame({'Column1':[1,2,3],'Column2':[4,5,6]})
print(df)

# 删除列
df_dropped = df.drop('Column1', axis=1)
print(df_dropped)

# 删除行
df_dropped = df.drop(0)  # 删除索引为 0 的行
print(df_dropped)